Skip to main content

UtilFunctions

This project covers all the test cases of REST trigger with usage of inline functions in response.

Sr. NoService NameDescriptionDetails
1.cnardyUse of custom array dynamic data type
{
"mobile1": "8787879090",
"mobile2": "",
"mobile3": "8787876767"
}
2.DYFLCLUse of dynamic field column array dynamic data type (i.e. if one of the column value is null it will dynamically select another valid coilumn
{
"mobile1": "7875364804",
"name": "Rajat",
"mobile2": "8783459234",
"mobile3": ""
}
3.IFELSEUse of ifelse condition logic in transformation
{
"status": "approved"
}
4.NoMapUse to transform the input to empty string
5.SwitchUse of switch case logic
{
"status": "approved"
}
6.DateUse to get the current date and time.
7.StringsUse of all string functions: 1. Use `concat` method to concatenate 2 or more strings with an underscore `_` between them. 2. Use `toUppercase` method to convert string to uppercase. 3. Use `countMatches` to find occurances of a word in given string. 4. Use `dasherize` to replace space with dash. 5. Use `isAlphanumeric` to check if given text contains only letters and numbers. 6. Use `toLowercase` method to convert string to lowercase. 7. Use `reverse` to reverse a string. 8. Use `capitalize` to capitalize a string. 9. Use `replaceAll` to replace old word with new word in a given string.
{
"FirstName": "john",
"LastName": "Doe",
"OriginalText": "This sentence will change",
"oldWord": "will",
"newWord": "has",
"text": "can you count how many a are there in this sentence"
}
8.MathUse `add` method for addition of static and dynamic values. Use `random` method: 1. without any length provided. 2. with length given 15
{
"additional": 20
}